/*
* 公司：Leita Tech
* 版权信息：雷塔所有
* 任务：
* 描述：
* 作者：李大平
* 日期：2020/06/04
*
*/

#ifdef _WIN32
   //define something for Windows (32-bit and 64-bit, this part is common)
    #define LT_WIN
   #ifdef _WIN64
      //define something for Windows (64-bit only)
        #define LT_WIN64
   #else
      //define something for Windows (32-bit only)
        #define LT_WIN32
   #endif
#elif __APPLE__
    #include "TargetConditionals.h"
    #if TARGET_IPHONE_SIMULATOR
         // iOS Simulator
        #define LT_IOS
        #define LT_SIMULATOR
    #elif TARGET_OS_IPHONE
        // iOS device
        #define LT_IOS
    #elif TARGET_OS_MAC
        // Other kinds of Mac OS
        #define LT_MAC
    #else
    #   error "Unknown Apple platform"
    #endif
#elif __ANDROID__
    // android
    #define LT_ANDROID
#elif __linux__
    // linux
    #define LT_LINUX
#elif __unix__ // all unices not caught above
    // Unix
    #define LT_UNIX
#elif defined(_POSIX_VERSION)
    // POSIX
    #define LT_POSIX
#else
#   error "Unknown compiler"
#endif

#ifdef __EMSCRIPTEN__
    // WASM
    #define LT_WASM
#endif

#ifdef LT_WIN
    #define DLL_EXPORT __declspec(dllexport)
    #define DLL_IMPORT __declspec(dllimport)
#else
    #define DLL_EXPORT
    #define DLL_IMPORT
#endif
